import Request from '../static/network/request.js';

export function upload(fileList : any) : any {
	return Request.upload({
		fileList
	})
}

export function getCountry() : any {
	return Request.get({
		api: '/api/country'
	})
}

export function getClassify() : any {
	return Request.get({
		api: '/api/category/list'
	})
}

export function getAgreement(type : number) : any {
	return Request.get({
		api: '/api/get_agreement/' + type
	})
}

export function getProblem() : any {
	return Request.get({
		api: '/api/question/lst'
	})
}

export function getBanner() : any {
	return Request.get({
		api: '/api/banner'
	})
}

export function getComplaintType() : any {
	return Request.get({
		api: '/api/complaint/lst'
	})
}


export function translate(data : {
	from ?: string
	to ?: string
	content ?: string
}) : any {
	return Request.post({
		api: '/api/trans',
		data
	})
}

